// iconLibrary.js
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 按字母顺序排序并过滤
export const elementPlusIcons = Object.entries(ElementPlusIconsVue)
  .filter(([key, value]) => typeof value === 'object' && key !== 'default')
  .map(([key, value]) => ({
    name: key,
    component: value
  }))
  .sort((a, b) => a.name.localeCompare(b.name)) // 按名称排序